<%@ page language="java" import="java.util.*;" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<html:base />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>货品信息</title>
</head>
<script src="../../js/jquery.js"></script>
<script src="../../js/CJL.0.1.min.js"></script>
<script src="../../js/sort.js"></script>
<script src="../../js/calendar.js"></script>
<script src="../../js/changebgcolor.js"></script>
<script src="../../js/system/merchandise.js"></script>

<link href="../../css/body.css" rel="stylesheet"  type="text/css" />
<link href="../../css/bus.css" rel="stylesheet"  type="text/css" />
<link href="../../css/sort.css" rel="stylesheet"  type="text/css" />
<link href="../../css/mask.css" rel="stylesheet"  type="text/css" />

<style>
.d{
	overflow-y:scroll; 
	border:0px solid;
	scrollbar-face-color:#70807d; 
	scrollbar-arrow-color:#ffffff; 
	scrollbar-highlight-color:#ffffff; 
	scrollbar-3dlight-color:#70807d; 
	scrollbar-shadow-color:#ffffff; 
	scrollbar-darkshadow-color:#70807d; 
	scrollbar-track-color:#ffffff;
}
.w{
	width:100px;
}
.w2{
	width:200px;
}
.dd{
	position:absolute;
	text-align:center;
	width:50%;
	height:54%;
	top:50%;
	left:50%;
	margin-top:-25%;
	margin-left:-27%;
	z-index:99999999;
	background-color:#699;
}
</style>
<body class="bb" style="padding:5px;" onload="selectAllMer();" >
<div style="position: absolute; top:0; left:0; width: 600px; height: 405px; text-align: right; z-index: 2;">
<input type="button" id="insert" value="增加" onclick="insertButton();" />
<input type="button" id="update" value="修改" onclick="updateButton();" />
<input type="button" id="delete" value="删除" onclick="deleteButton();" />
<input type="button" id="select" value="查找" onclick="selectButton();" />
<input type="button" id="print"  value="打印" />
<input type="button" id="out"    value="退出" />
<br /><br /><br />
<div style="position:absolute; left: 6px; top: 45px; z-index:100;">
<table border="0" cellspacing="1" class="odTable" id="idTable" onMouseOver="changeto()"  onmouseout="changeback()" style="border: 0;" width="600px">
<thead>
<tr>
<td width="40px">&nbsp;</td>
<td width="100">编号</td>
<td width="100">名称</td>
<td width="100">类别</td>
<td width="120">货品规格</td>
<td width="50">单位</td>
<td width="80">数量</td>
<td width="120">货品备注</td>
<td width="120">预警数量</td>
</tr>
</thead>
<tbody id="merchandiseList">

</tbody>
<tfoot>
<tr>
<td width="">
	&nbsp;&nbsp;
</td>
<td width="">
	&nbsp;&nbsp;
</td>
<td width="">
	&nbsp;&nbsp;
</td>
<td width="">
	&nbsp;&nbsp;
</td>
<td width="">
	&nbsp;&nbsp;
</td>
<td width="">
	&nbsp;&nbsp;
</td>
<td width="">
	&nbsp;&nbsp;
</td>
<td width="">
	&nbsp;&nbsp;
</td>
<td width="">
	&nbsp;&nbsp;
</td>
</tr>
</tfoot>
</table>
</div>
</div>
<div id="sus" class="dd" style="display:none;" >
<div style="text-align:right;">
<input type="button" style="border:0; background-color:#996;" value="Ⅹ" onclick="hiddenDiv('sus');" />
</div>
<form >
<table align="center" style="text-align:left;">
<tr>
<td>
货品编号：<input id="merchandiseCid" type="text" style="width: 100px;">
<input class="w" id="merchandiseId" type="text" size="10" />
</td>
</tr>
<tr>
<td>
货品名称：<input id="merchandiseName" type="text" style="width: 100px;">			
</td>
</tr>
<tr>
<td>
货品单位：<select id="merchandiseUnit">
			<option value=""></option>
				<c:forEach var="merUnit" items="${merchandiseUnitList}">
					<option value="${merUnit.merchandiseUnitId}">${merUnit.merchandiseUnitName}</option>
				</c:forEach>
		 </select>			
</td>
</tr>
<tr>
<td>
货品类别：<select id="merchandiseType">
			<option value=""></option>
				<c:forEach var="merType" items="${merchandiseTypeList}">
					<option value="${merType.merchandiseTypeId}">${merType.merchandiseTypeName}</option>
				</c:forEach>
		 </select>
</td>
</tr>
<tr>
<td>
货品规格：<input id="merchandiseNorm" type="text" style="width: 100px;">
</td>
</tr>
<tr>
<td>
货品数量：
<input class="w2" id="merchandiseAmount" type="text" size="30" />
</td>
</tr>
<tr>
<td>
警戒数量：
<input class="w2" id="merchandiseAlert" type="text" size="30" />
</td>
</tr>
<tr>
<td>
备注：
<input class="w2" id="merchandiseMemo" type="text" size="30" />
</td>
</tr>
<tr>
<td align="center">
<div id="add" style="display:none;"><input type="button" value="添加" onclick="createMer()" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" /></div>
<div id="modify" style="display:none;"><input type="button" value="修改" onclick="updateMer()" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" /></div>
<div id="find" style="display:none;"><input type="button" value="查找" onclick="selectMer()" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重置" /></div>
</td>
</tr>
</table>
</form>
<br />
</div>
<div id="mask" style="display:none;"></div>
</body>
</html>